#ifndef _SYSTEM_INFO_H_
#define _SYSTEM_INFO_H_

#define NUM_AVERAGES    3



struct system_info
{
    int    last_pid;
    double load_avg[NUM_AVERAGES];
    int    p_total;
    int    P_ACTIVE;     /* number of procs considered "active" */
    int    *procstates;
    int    *cpustates;
    int    *kernel;
    long   *memory;
    long   *swap;
};

float get_user_cpu_rate();
float get_mem_rate();
long get_total_mem_size();



#endif